package com.h2210a.login.controller;

import com.h2210a.common.pojo.Member;
import com.h2210a.common.result.Result;
import com.h2210a.login.feign.LoginFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("user")
public class LoginController {

    @Autowired
    LoginFeignService loginFeignService;

    @RequestMapping("login")
    public Result login(@RequestBody Member member){
        return loginFeignService.Login(member);
    }
}
